import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class DATE {
	  public static void main(String[] args) throws ParseException {
	        String s = "Wed Sep 26 00:00:00 CST 2018";
	        SimpleDateFormat sf1 = new SimpleDateFormat("EEE MMM dd hh:mm:ss z yyyy", Locale.ENGLISH); 
	        Date date = sf1.parse(s);
	        SimpleDateFormat sf2 = new SimpleDateFormat("yyyy-MM-dd");
	        System.out.println(sf2.format(date));
	    }
}
